package com.suma.platform.core.model;

import lombok.Data;

/**
 * @author suma
 * @date 2018/1/23 上午11:16
 */
@Data
public class Employee {

	public Employee() {
	}

	public Employee(String name) {
		this.name = name;
	}

	private String name;

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		Employee employee = (Employee) o;

		return name != null ? name.equals(employee.name) : employee.name == null;
	}

	@Override
	public int hashCode() {
		return 1;
	}
}
